package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {

        Student zs=new Student("张三",25,"河南","jsd2302","001");

        zs.className="jsd2302";
        zs.stuId="001";
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Teacher ww=new Teacher("王五",28,"郑州",5000);
        ww.salary=5000;
        ww.teach();
        ww.sayHi();

        Doctor ls=new Doctor("李四",23,"山东","主任医师");
        ls.title="主任医师";
        ls.cut();
        ls.sayHi();
    }
}
